/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mireille.learning.lesson1.equals;

/**
 *
 * @author Luca
 */
public class TestEquals {
    
    public static void main(String args[]){
        System.out.println("Ciao  test equals: ");
        
        Persona p1 = new Persona("Luca", "Coraci", "123");
        Persona p2 = new Persona("Luca", "Coraci", "123");
        Persona p3 = new Persona("Daniele", "La Torre", "00000");
        String x = "viva la pasta";
        
        
        if(p1.equals(p2) ){
            System.out.println("Sono la stessa persona !!");
        }else{
            System.out.println("sono diversi");
        }
//        
    }
        
    
}
